module.exports=function (templateParams) {
	var _cssList=['starbutton'];
	var webAssetsHelp=require('./webAssetsHelp.js')(templateParams,_cssList);
  var _html = "{% extends 'layout.html' %}" +
  "{% block title %}{{ title }}{{ version|formatVersion }}{% endblock %}" +
  "{% block styles %}" +
  webAssetsHelp.styles+
  "{% endblock %}" +
  "{% block script %}" +
  ////webAssetsHelp.scripts +
  // "<script>"+
  // "  (function () {  "+
  // "    const jsList = ["+ webAssetsHelp.scriptList +"];"+
  // "    for (let i = 0; i < jsList.length; i++) {"+
  // "      const ajs = jsList[i];"+
  // "      if(localStorage.getItem(ajs)){"+
  // "        $(\'<scr\'+\'ipt>\'+ localStorage.getItem(ajs) +\'</scr\'+\'ipt>\').attr({type:\'text/javascript\',id:i}).appendTo($(\'head\').remove(\'#\' + i));"+
  // "      }"+
  // "      else{            "+
  // "        $.getScript(ajs,function(data) { "+
  // "          localStorage.setItem(ajs, data);"+
  // "        })"+
  // "      }      "+
  // "    }"+
  // "  })();"+
  // "  </script>"+
  "  <script>"+
  "  (function () {  "+
  "    const jsList = ["+ webAssetsHelp.scriptList +"];"+
  "    let newCache = false;"+
  "    for (let i = 0; i < jsList.length; i++) {"+
  "      const ajs = jsList[i];"+
  "      if(localStorage.getItem(ajs)){"+
  "        $(\'<scr\'+\'ipt>\'+ localStorage.getItem(ajs) +\'</scr\'+\'ipt>\').attr({type:\'text/javascript\',id:i}).appendTo($(\'head\').remove(\'#\' + i));"+
  "      }"+
  "      else{   "+
  "        localStorage.clear();"+
  "        newCache = true;"+
  "        for (let n = 0; n < jsList.length; n++) {"+
  "          const newJs = jsList[n];"+
  "          axios.get(newJs).then(function (data) {"+
  "            /*注意下面使用data.data*/"+
  "            localStorage.setItem(newJs, data.data);"+
  "          })          "+
  "        }"+
  "        break;"+
  "      }   "+
  "    }   "+
  "    if(newCache){"+
  "      /*注意使用LazyLoad，而不是lazyload*/"+
  "      LazyLoad.js(jsList,function () {});"+
  "    }"+
  "  })();"+
  "  </script>"+
  "{% endblock %}" +
  "{% block head-script %}" +  
  "<script>    " +
  "    function onload(){" +
  "      ;" +
  "    }" +
  "</script>" +
  "{% endblock %}" +
  "{% block bodyevent %}onload='onload()'" +
  "{% endblock %}" +
  "{% block content %}" +
  "{% include '../widget/star.html' %}" +
  "{% endblock %}";     

  return _html;
}